<!DOCTYPE html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <link rel="stylesheet" href="./css/index.css" />
</head>

<body>
    <h1>HTML &lt;img&gt; 标签</h1>

    <h2>定义与用法</h2>

    <h3>参考链接</h3>
    <p><a target="_blank" href="https://www.w3school.com.cn/tags/tag_img.asp">HTML &lt;img&gt; 标签</a></p>

    <h3>摘抄</h3>
    <p>img 元素向网页中嵌入一幅图像。</p>


    <h3>示例</h3>

    <h4>展示效果</h4>

    <img src="../../img/logo.jpg" alt="logo" width="100px" height="100px"/>

    <h4>具体代码</h4>
    <pre>
&lt;img src=&quot;../../img/logo.jpg&quot; alt=&quot;logo&quot; width=&quot;100px&quot; height=&quot;100px&quot;/&gt;
    </pre>
    
</body>

</html>